function a(s) {
    var o = s.data.page;
    wx.request({
        url: t.globalData.host + "/lotto/v1/user_list",
        data: {
            lid: s.data.lid,
            access_token: e.getToken(),
            page: o,
            count: 20,
            type: 1
        },
        method: "GET",
        dataType: "json",
        success: function(t) {
            if (e.hideLoading(), -500 != t.data.sta) if (0 == t.data.sta) {
                var i = t.data.data, n = !1;
                20 == i.users.length && (n = !0), s.setData({
                    users: 1 == o ? i.users : s.data.users.concat(i.users),
                    total: i.total,
                    page: o + 1,
                    moreData: n
                });
            } else e.showFailedToast("数据加载失败", t.data.msg); else e.login(function() {
                a(s), s.setData({
                    hasUserInfo: !0
                });
            }, function() {
                s.setData({
                    hasUserInfo: !1
                });
            });
        },
        fail: function(a) {
            e.hideLoading();
        }
    });
}

var t = getApp(), e = require("../../utils/util.js");

Page({
    data: {
        page: 1,
        moreData: !1
    },
    onLoad: function(t) {
        this.setData({
            lid: t.lid || ""
        }), a(this);
    },
    onReachBottom: function() {
        this.data.moreData && a(this);
    }
});